<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象扩展</title>

    <script>
        let user = {
            name:"liuyifei",
            age:25
        }

        let student = {
            id:"1000",
            name:"songzhengshen",
            address:"shanghai"
        }

        let teacher = {
            name:"tuohao",
            car:"yadi"
        }

        Object.assign(user,student,teacher)
        console.log(user)
        console.log(student)
        console.log(teacher)
    </script>
</head>
<body>



</body>
</html>